import request from '@/utils/request'

// 查询特殊时段列表
export function listInterver(query) {
  return request({
    url: '/boss/interver/list',
    method: 'get',
    params: query
  })
}

// 查询特殊时段详细
export function getInterver(sendInterverId) {
  return request({
    url: '/boss/interver/' + sendInterverId,
    method: 'get'
  })
}

// 新增特殊时段
export function addInterver(data) {
  return request({
    url: '/boss/interver',
    method: 'post',
    data: data
  })
}

// 修改特殊时段
export function updateInterver(data) {
  return request({
    url: '/boss/interver',
    method: 'put',
    data: data
  })
}

// 删除特殊时段
export function delInterver(sendInterverId) {
  return request({
    url: '/boss/interver/' + sendInterverId,
    method: 'delete'
  })
}
